package com.atguigu.yygh.host.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author DongYu Zhou
 * @date 2022/6/24 17:15
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {


    Hospital getByHoscode(String hoscode);

    List<Hospital> getByHosnameLike(String hosname);
}
